package 设计原则.迪米特原则;

public class Test {
    public static void main(String[] args) {
        Boss boss = new Boss();
        TeamLeader teamLeader = new TeamLeader();
        PythonProgrammer pythonProgrammer = new PythonProgrammer();
        JavaProgrammer javaProgrammer = new JavaProgrammer();

        boss.meet(teamLeader);

        teamLeader.setProgrammer(javaProgrammer);
        teamLeader.assigTask();
        teamLeader.setProgrammer(pythonProgrammer);
        teamLeader.assigTask();



    }
}
